import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'  //路由
//import ElementPlus from 'element-plus'  //element
//import 'element-plus/dist/index.css'
import {createPinia} from 'pinia'
 import "amfe-flexible"
//createApp(App).use(router).mount('#app')

//echarts
// import 'echarts'
// import ECharts from 'vue-echarts'
// 引入数据持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


const store = createPinia()
store.use(piniaPluginPersistedstate) //  pinia使用数据持久化插件

const app = createApp(App)
app.use(router)
// app.component('v-chart', ECharts)  //引入echarts
//app.use(ElementPlus)
app.use(store)
app.mount('#app')
